/*
 *  CS202 - Spring 2009">
 *  Professor: Dr. Michael Peterson">
 *  Student: Deylo Woo (dwoo711@gmail.com) ">
 */
package project_3;

import javax.swing.*;
import java.awt.*;

/**
 *
 * @author Deylo Woo
 */
public class ControlPanel extends JPanel {

    private JLabel _lbMess = new JLabel();

    public ControlPanel() {
        super();
        this.setVisible(true);
        LoadControls();
    }

    private void LoadControls() {
        _lbMess.setText("Score is:");
        _lbMess.setForeground(Color.WHITE);
        this.add(_lbMess);
    }

    public void UpdateMessage(String message) {
        _lbMess.setText(message);
    }

    public void Move() {
    }

    @Override
    public void paintComponent(Graphics g) {
        super.paintComponent(g);
        g.setColor(Color.BLACK);
        g.fillRect(0, 0, this.getWidth(), this.getHeight());
    }
}

